import Vue from 'vue'
import Router from 'vue-router'
import homeViewRoute from '../views/home.vue';
import aboutViewRoute from '../views/about.vue';
import newsViewRoute from '../views/news.vue';
import newsDetailsViewRoute from '../views/news-details.vue'
import solutionViewRoute from '../views/solution.vue'
import servicesViewRoute from '../views/services.vue'
import customerViewRoute from '../views/customer.vue'
import customerDetailsViewRoute from '../views/customer-details.vue'

Vue.use(Router)
const routes = [
  {
    path: '/',
    component: homeViewRoute,
  }, {
    path: '/home/',
    component: homeViewRoute
  }, {
    path: '/about/:type(\\d+)',
    component: aboutViewRoute
  }, {
    path: '/news/',
    component: newsViewRoute
  }, {
    path: '/news/:id(\\d+)',
    component: newsDetailsViewRoute
  }, {
    path: '/solution',
    component: solutionViewRoute
  },  {
    path: '/solution/:id(\\d+)',
    component: solutionViewRoute
  },{
    path:'/services',
    component: servicesViewRoute
  }, {
    path:'/services/:id(\\d+)',
    component: servicesViewRoute
  },{
    path:'/customer',
    component: customerViewRoute
  }, {
    path: '/customer/:id(\\d+)',
    component: customerDetailsViewRoute
  }
]
const router = new Router({
  routes
})

export default new Router({
  routes
})
